package com.landcode.land.data.canal.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class CanalServerConfig {
    @Value("${canal.client.servers}")
    private String servers;

    @Value("${canal.client.cluster}")
    private boolean cluster;

    @Value("${canal.client.destination}")
    private String destination;

    @Value("${canal.client.username}")
    private String username;

    @Value("${canal.client.password}")
    private String password;

    @Value("${canal.config.batchSize}")
    private int batchSize;

    @Value("${canal.config.waitingTime}")
    private long waitingTime;
}
